From a75dcce70736490c5404297a1a1f50f653343ec6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 5 Feb 2019 16:52:53 -0500 Subject: [PATCH] Make the invisible invisible The change to make widgets visible by default broke GtkInvisibles special-cased state handling and that in turn caused picking in the inspector to break with another recent change. This change makes the inspector pick button work again. --- gtk/gtkwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index b6d3026c32..782888e310 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -11983,6 +11983,7 @@ static gboolean gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class) { return !(GTK_IS_WINDOW_CLASS (widget_class) || + GTK_IS_INVISIBLE_CLASS (widget_class) || GTK_IS_POPOVER_CLASS (widget_class)); } -- 2.30.2